/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.bus.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.bus.dao.EntHistoryDao;
import com.thinkgem.jeesite.modules.bus.entity.EntHistory;

/**
 * 企业备案历史表Service
 * @author zhangxingliang
 * @version 2019-06-10
 */
@Service
@Transactional(readOnly = true)
public class EntHistoryService extends CrudService<EntHistoryDao, EntHistory> {
	@Autowired
	public EntHistoryDao entHistoryDao;

	public EntHistory get(String id) {
		return super.get(id);
	}
	
	public List<EntHistory> findList(EntHistory entHistory) {
		return super.findList(entHistory);
	}
	
	public Page<EntHistory> findPage(Page<EntHistory> page, EntHistory entHistory) {
		return super.findPage(page, entHistory);
	}
	
	@Transactional(readOnly = false)
	public void save(EntHistory entHistory) {
		super.save(entHistory);
	}
	
	@Transactional(readOnly = false)
	public void delete(EntHistory entHistory) {
		super.delete(entHistory);
	}
	
	/**
	 * 
	* @Title: getByAuditId 
	* @author: ZYJ
	* @date: 2019年6月19日 下午7:44:15 
	* @Description: 通过审核id获取企业历史信息
	* @param: auditId
	* @return: EntHistory
	* @throws
	 */
	public EntHistory getByAuditId(String auditId){
		return entHistoryDao.getByAuditId(auditId);
	}
}